<form action="index.php?app=ome&ctl=<{$env.get.ctl}>&act=do_dispatch" method="post" id="disForm">
<{toinput from=$env.post}>
<table class="tableform">
<tbody>
<tr><th>订单确认小组：<td>
<{input type="select" name='new_group_id' rows=$groups valueColumn="group_id" labelColumn="name" onchange="getOp(this.value,'')"}></td></tr>
<tr><th>订单操作员：</th>
<td><select id='new_op_id' name='new_op_id'></select></td></tr>
</tbody>
</table>
<div class="table-action"><{button type="button" label="确认" id="btnSubmit"}></div>
</form>

<script>
var flag = true;
 $('btnSubmit').addEvent('click',function(e){
	 if(flag){
		flag = false;	
		$('disForm').fireEvent('submit',e);
	}
 });


function getOp(group_id,selected_op_id){
	if(group_id){
	    W.page('index.php?app=ome&ctl=admin_group&act=get_op&p[0]='+group_id+'&p[1]='+selected_op_id+'&p[2]=true',{update:$('new_op_id')});
	}else{
	    $('new_op_id').empty();
	}
}
</script>